package com.zys.pojo;

import java.util.Set;
import java.util.HashSet;
import java.io.Serializable;

/**
 * 角色实体类
 */
public class Role implements Serializable {
  private Integer id;         // 角色 id
  private String roleName;    // 角色名称
  private String description; // 角色描述
  private String keyword;     // 角色关键字，用于权限控制
  private Set<Rights> rights = new HashSet<>();   // 该角色拥有的所有权限

  public Role() {
  }

  public Role(Integer id) {
    this.id = id;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Set<Rights> getRights() {
    return rights;
  }

  public void setRights(Set<Rights> rights) {
    this.rights = rights;
  }

  public String getKeyword() {
    return keyword;
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

}
